package com.bst.base.vo;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class OutInterParamVO implements Serializable {

    private Long idInter; //接口编号
    private String cdInter;
    private String unique;
    private Map<String,String> param;

    public  OutInterParamVO() {

    }
    public OutInterParamVO(String cdInter,String... params) {
        this.setCdInter(cdInter);
        Map<String,String> paramMap = new HashMap<>();
        if(params.length>0) {
            Integer firstIndex;
            for(String param:params) {
                firstIndex = param.indexOf(",");
                if(firstIndex>0) {
                    paramMap.put(param.substring(0,firstIndex),param.substring(firstIndex+1,param.length()));
                }
            }
        }
        this.param = paramMap;
    }

    public String getUnique() {
        return unique;
    }

    public void setUnique(String unique) {
        this.unique = unique;
    }

    public String getCdInter() {
        return cdInter;
    }

    public void setCdInter(String cdInter) {
        this.cdInter = cdInter;
    }

    public Long getIdInter() {
        return idInter;
    }

    public void setIdInter(Long idInter) {
        this.idInter = idInter;
    }

    public Map<String, String> getParam() {
        return param;
    }

    public void setParam(Map<String, String> param) {
        this.param = param;
    }
}
